package com.shinewind.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "接受注册表单的参数")
public class MyUserDto implements Serializable {
    @ApiModelProperty(value = "账号")
    @NotNull(message = "账号不能为null")
    private String userName;
    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为null")
    private String passWord;
    @ApiModelProperty(value = "确认密码")
    @NotNull(message = "确认不能为null")
    private String rePassword;
    @ApiModelProperty(value = "电话")
    @NotNull(message = "电话不能为null")
    private String telePhone;
    @ApiModelProperty(value = "昵称")
    @NotNull(message = "昵称不能为null")
    private String nickName;
    @ApiModelProperty(value = "验证码")
    @NotNull(message = "验证码不能为null")
    private String verify;
}
